google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2023-11-29',19822117,null,null,null,null], ['2023-11-30',19822117,null,null,null,null], ['2023-12-01',19837639,null,null,null,null], ['2023-12-02',19837639,null,null,null,null], ['2023-12-03',19846801,null,null,null,null], ['2023-12-04',19857300,null,null,null,null], ['2023-12-05',19857300,null,null,null,null], ['2023-12-06',19870678,null,null,null,null], ['2023-12-07',19879020,null,null,null,null], ['2023-12-08',19883505,null,null,null,null], ['2023-12-09',19893741,null,null,null,null], ['2023-12-10',19896326,null,null,null,null], ['2023-12-11',19906002,null,null,null,null], ['2023-12-12',19914647,null,null,null,null], ['2023-12-13',19920837,null,null,null,null], ['2023-12-14',19933580,null,null,null,null], ['2023-12-15',19933580,null,null,null,null], ['2023-12-16',19941023,null,null,null,null], ['2023-12-17',19963356,null,null,null,null], ['2023-12-18',19974348,null,null,null,null], ['2023-12-19',19974348,null,null,null,null], ['2023-12-20',19974348,null,null,null,null], ['2023-12-21',19974348,null,null,null,null], ['2023-12-22',19974348,null,null,null,null], ['2023-12-23',19974348,null,null,null,null], ['2023-12-24',19974348,null,null,null,null], ['2023-12-25',19974348,null,null,null,null], ['2023-12-26',19974348,null,null,null,null], ['2023-12-27',19974348,null,null,null,null], ['2023-12-28',19974348,null,null,null,null], ['2023-12-29',19974348,null,null,null,null], ['2023-12-30',19974348,null,null,null,null], ['2023-12-31',19974348,null,null,null,null], ['2024-01-01',19974348,null,null,null,null], ['2024-01-02',19974348,null,null,null,null], ['2024-01-03',20109644,null,null,null,null], ['2024-01-04',20109644,null,null,null,null], ['2024-01-05',20109644,null,null,null,null], ['2024-01-06',20109644,null,null,null,null], ['2024-01-07',20109644,null,null,null,null], ['2024-01-08',20109644,null,null,null,null], ['2024-01-09',20109644,null,null,null,null], ['2024-01-10',20109644,null,null,null,null], ['2024-01-11',20109644,null,null,null,null], ['2024-01-12',20109644,null,null,null,null], ['2024-01-13',20109644,null,null,null,null], ['2024-01-14',20109644,null,null,null,null], ['2024-01-15',20109644,null,null,null,null], ['2024-01-16',20109644,null,null,null,null], ['2024-01-17',20109644,null,null,null,null], ['2024-01-18',20109644,null,null,null,null], ['2024-01-19',20256665,null,null,null,null], ['2024-01-20',20259790,null,null,null,null], ['2024-01-21',20259790,null,null,null,null], ['2024-01-22',20259790,null,null,null,null], ['2024-01-23',20259790,null,null,null,null], ['2024-01-24',20262013,null,null,null,null], ['2024-01-25',20262013,null,null,null,null], ['2024-01-26',20262013,null,null,null,null], ['2024-01-27',20299710,null,null,null,null], ['2024-01-28',20299710,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });